<script setup lang="ts">
import useConfigStore from '../../../store/config'

const configStore = useConfigStore()

function toggleMode(v: boolean) {
  configStore.setWatermark(v)
}

</script>

<template>
  <ElSwitch
    :model-value="configStore.watermark"
    inline-prompt
    @change="toggleMode"
  />
</template>
